package org.kamionowski.supreme.jobs;

import org.kamionowski.supreme.persistence.entity.Service;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: Marcin Kamionowski
 * Date: 11.04.11
 * Time: 22:34
 */
public abstract class ScanRequest {

    private final Service serviceToScan;
    private final Date requestCreationDate;

    public ScanRequest(Service serviceToScan) {
        this.serviceToScan = serviceToScan;
        this.requestCreationDate = new Date();
    }

    public Service getServiceToScan() {
        return serviceToScan;
    }

    public Date getRequestCreationDate() {
        return requestCreationDate;
    }

    abstract boolean isAdminRequest();
}
